from django.urls import path, re_path, include
from django.conf import settings
from django.views.static import serve
from django.contrib.staticfiles.urls import staticfiles_urlpatterns

from . import views

urlpatterns = [
    path('', views.index, name='index'),
    path('check_receipt', views.check_receipt, name='receipt'),
    path('check_receipt_url', views.check_receipt_url, name='receipt_url'),
    path('check_img', views.check_img, name='check_img'),
    re_path('^imgs/(?P<path>.*)$', serve, {'document_root': settings.RECEIPTORC_MEDIA_ROOT}),
]